package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@NoArgsConstructor
@Setter
@Getter
@TableName("tb_unit")
public class Unit implements Serializable {
    @TableId(type = IdType.AUTO)//指定自增策略
    private Integer id;
    @TableField("unit_name")
    private String unitName;
    @TableField("unit_level")
    private Integer unitLevel;
    @TableField("major_id")
    private Integer majorId;
    @TableField(exist = false)
    private Major major;
    @TableField(exist = false)
    private LocalDateTime createTime;
}
